package com.xci.xajtfb.bus.service;

import com.xci.xajtfb.bus._core.BusBaseService;
import com.xci.xajtfb.bus.dao.TbBusStationDao;
import com.xci.xajtfb.bus.entity.TbBusStation;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 服务
 * @author 马星俊 maxingjun@xci96716.com
 * @since 2021-03-08 16:31:56
 */
@Service
public class TbBusStationService extends BusBaseService {
    /** 数据层对象 */
    @Resource
    private TbBusStationDao tbBusStationDao;

    /**
     * 查询列表
     * @return 返回线路列表
     */
    public List<TbBusStation> selectListByRouteId(@NotBlank(message = "请输入线路名称") String routeId,
                                                  @NotNull(message = "是否上下行") Integer type) {
        return tbBusStationDao.selectListByRouteId(routeId,type);
    }


}
